package com.example.demo.arithmetic.datastructure.linkedlist;

/**
 * @Description: 节点
 * @return:
 * @Author: liull
 * @Date: 2020/3/13
 */
class HeroNode {

    /**
     * 指向下一节点
     */
    public HeroNode next;

    /**
     * 姓名
     */
    public String name;

    /**
     * 昵称
     */
    public String nickname;

    /**
     * 编号
     */
    public int no;

    /**
     * @param nickname
     * @param no
     * @Description: 构造器
     * @Param: name
     * @return:
     * @Author: liull
     * @Date: 2020/3/13
     */
    public HeroNode(String name, String nickname, int no) {
        this.name = name;
        this.nickname = nickname;
        this.no = no;
    }

    @Override public String toString() {
        return "HeroNode{" +
                "name='" + name + '\'' +
                ", nickname='" + nickname + '\'' +
                ", no=" + no +
                '}';
    }
}

